import { AROUND_PRODUCTS_URL, GAMES_PRODUCTS_URL, HANDLER_PRODUCTS_URL, HOME_PRODUCTS_URL } from "../config/productsUrl.cfg";
import { HOME_BANNER_URL } from "../config/userUrl.cfg";
import request from "./ajax";

/** 获取banner图Api */
export function getBannerApi(){
    return request({url:HOME_BANNER_URL})
} 

/** 获取首页推荐商品Api */
 export function getHomeProductsApi(page:number,size:number){
    return request({
        url:HOME_PRODUCTS_URL,
        params:{page,size}
    })
 }

/** 获取人气手办商品数据 */
export function getHandlerProductsApi()  {
    return request({
        url:HANDLER_PRODUCTS_URL
    })
}

/** 获取人气周边商品数据 */
export function getAroundProductsApi()  {
    return request({
        url:AROUND_PRODUCTS_URL
    })
}

/** 获取人气手办商品数据 */
export function getGamesProductsApi()  {
    return request({
        url:GAMES_PRODUCTS_URL
    })
}

